package org.seamon.management.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.validation.Valid;
import org.seamon.management.pojo.dto.RoleMenuDeleteDto;
import org.seamon.management.pojo.dto.RoleMenuUpdateDto;
import org.seamon.management.pojo.entity.RoleMenu;

import java.util.List;

/**
* @author Simon
* @description 针对表【sys_role_menu(角色菜单关联表)】的数据库操作Service
* @createDate 2025-07-11 00:31:54
*/
public interface RoleMenuService extends IService<RoleMenu> {

    /**
     * 角色菜单保存
     *
     * @param dto
     */
    void updateMenu(@Valid RoleMenuUpdateDto dto);

    /**
     * 角色菜单删除
     *
     * @param dto
     */
    void remove(@Valid RoleMenuDeleteDto dto);

    /**
     * 根据角色ID查询菜单ID
     *
     * @param roleIds
     * @return
     */
    List<Long> getMenuByRoleIds(List<Long> roleIds);
}
